You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > Vector Structure > Vector Methods > PhaseSpectrum Method > Vector.PhaseSpectrum Method ([In] TMtxVec)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Vector.PhaseSpectrum Method ([In] TMtxVec)

The phase angles (spectrum) of object elements.

Syntax
C#
Visual Basic
public TMtxVec PhaseSpectrum([In] TMtxVec Vec);

Calculates the phase angles (spectrum) of all Vec object elements. Phase values are returned in radians and are in the range [-PI,PI]. Size and Complex properties of the calling object are set implicitly to match Vec object. The phase angles are calculated from the following equation: 

 

var a,b: Vector; begin a.SetIt(True,[1,2,3,4]); // a = [1 + 2i, 3 - 4i] b.PhaseSpectrum(a); // b = [arctan2(1,2), arctan2(3,-4)]; end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!